package xiegd.study.map;

import com.google.common.collect.Lists;

import java.util.ArrayList;
import java.util.Collections;
import java.util.List;

/**
 * @Author: xieguangda
 * @Description:
 * @Date: 2023/11/13 10:01
 */
public class FinalTest {
    final List names;

    FinalTest(List names){
        this.names = Collections.unmodifiableList(names);
    }

    public static void main(String[] args) {
        ArrayList<String> name = Lists.newArrayList("name");
        FinalTest finalTest = new FinalTest(name);

        System.out.println(finalTest.names);
    }

}
